package com.fgba.express.data.mapstruct;

import com.fgba.express.core.mapstruct.BaseStruct;
import com.fgba.express.data.dto.RoleDto;
import com.fgba.express.data.entity.Role;
import com.fgba.express.data.search.RoleSearch;
import org.mapstruct.Mapper;
import org.mapstruct.NullValuePropertyMappingStrategy;

/**
 * 快递员实体和快递员Model之间的对象转换
 */
@Mapper(componentModel = "spring", nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
public interface RoleStruct extends BaseStruct<Role, RoleDto, RoleSearch> {
    @Override
    Role entityConvertDto(RoleDto dto);

    @Override
    RoleDto dtoConvertEntity(Role entity);
}
